
package javafxapplication3;


import javafx.stage.*;
import javafx.scene.*;
import javafx.scene.media.*;
import javafx.scene.effect.*;
import javafx.scene.shape.Rectangle;
import javafx.scene.paint.Color;
import javafx.scene.input.MouseEvent;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.effect.light.*;
import javafx.scene.paint.*;
import javafx.scene.effect.BlendMode.*;
import javafx.ext.swing.SwingButton;
import javafx.scene.control.Button;
import javafx.scene.control.ProgressBar;

function run(args: String[]) {

  var media = Media { source:  "c://evert/project_0001.wmv" };

var mediaPlayer = MediaPlayer { autoPlay: true repeatCount:100
                                media: media }

  var eff:Effect=null;
//  var r:Integer=0;

  Stage { title: "Video Player"
    scene: Scene { width: media.width height: media.height+50
      content: [MediaView{effect:bind eff mediaPlayer: mediaPlayer },
                Rectangle{x:10,y:10 width:70,height:30 fill: Color.BEIGE
                
          },
                    
Button {
	text: "VORIGE"
        translateX: 1
        translateY: 580
	action: function() {
	}

},
Button {
	text: "VOLGENDE"
        translateX: 80
        translateY: 580
	action: function() {
	}
        
},
ProgressBar {
	progress: bind ProgressBar.computeProgress( 100, 30 )
        translateX: 1
        translateY:607
},
Text {
	font : Font {
		size: 24
	}
	x: 170, y: 600
	content: "filmpke"
}





                    ] } }}
